package com.wjl.guli.service.edu.feign;

import com.wjl.guli.common.base.R;
import com.wjl.guli.service.edu.feign.imp.OssFileServiceImp;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Service
@FeignClient(value = "service-oss",fallback = OssFileServiceImp.class)
public interface OssFileService {
    @GetMapping("/admin/oss/file/test")
    R test();
    @DeleteMapping("/admin/oss/file/removeAvatar")
    R removeAvatar(@ApiParam(value = "图片地址",required = true) @RequestBody String url);

}

